
package asteroids.model.programs.parsing.expressions;


public abstract class UnaryExpression extends ComposedExpression {
	protected UnaryExpression(E expression){
		if(!canHaveAsExpression(expression)){
			setExpression(null);
		}
		setExpression(expression);
	}
	
	public void setExpression(E e){
		this.expression = e;
	}
	
	public E getExpression(){
		return this.expression;
	}
	private E expression;
}
